<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.12"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Os1: /home/alejandro/Desarrollo eclipse/os1/Thirdparty/g2o/g2o/stuff/string_tools.h File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Os1
   &#160;<span id="projectnumber">1</span>
   </div>
   <div id="projectbrief">OrbSlam2 documentado y modificado</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.12 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',true,'Search');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('string__tools_8h.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#namespaces">Namespaces</a> &#124;
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">string_tools.h File Reference</div>  </div>
</div><!--header-->
<div class="contents">
<div class="textblock"><code>#include &lt;string&gt;</code><br />
<code>#include &lt;sstream&gt;</code><br />
<code>#include &lt;cstdlib&gt;</code><br />
<code>#include &lt;vector&gt;</code><br />
<code>#include &quot;<a class="el" href="macros_8h_source.html">macros.h</a>&quot;</code><br />
</div><div class="textblock"><div class="dynheader">
Include dependency graph for string_tools.h:</div>
<div class="dyncontent">
<div class="center"><iframe scrolling="no" frameborder="0" src="string__tools_8h__incl.svg" width="428" height="216"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe></div>
</div>
</div><div class="textblock"><div class="dynheader">
This graph shows which files directly or indirectly include this file:</div>
<div class="dyncontent">
<div class="center"><iframe scrolling="no" frameborder="0" src="string__tools_8h__dep__incl.svg" width="1987" height="646"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe></div>
</div>
</div>
<p><a href="string__tools_8h_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="namespaces"></a>
Namespaces</h2></td></tr>
<tr class="memitem:namespaceg2o"><td class="memItemLeft" align="right" valign="top"> &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceg2o.html">g2o</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:ga599c46f6984e9a2147fac39324e9fadc"><td class="memTemplParams" colspan="2">template&lt;typename T &gt; </td></tr>
<tr class="memitem:ga599c46f6984e9a2147fac39324e9fadc"><td class="memTemplItemLeft" align="right" valign="top">bool&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="group__utils.html#ga599c46f6984e9a2147fac39324e9fadc">g2o::convertString</a> (const std::string &amp;s, T &amp;x, bool failIfLeftoverChars=true)</td></tr>
<tr class="memdesc:ga599c46f6984e9a2147fac39324e9fadc"><td class="mdescLeft">&#160;</td><td class="mdescRight">convert a string into an other type.  <a href="group__utils.html#ga599c46f6984e9a2147fac39324e9fadc">More...</a><br /></td></tr>
<tr class="separator:ga599c46f6984e9a2147fac39324e9fadc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga4326834faf460aaec85ba8c4cb1a3d4e"><td class="memItemLeft" align="right" valign="top">std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__utils.html#ga4326834faf460aaec85ba8c4cb1a3d4e">g2o::formatString</a> (const char *fmt,...) <a class="el" href="macros_8h.html#a053aa988e1d5f059ce90eb7c185e0058">G2O_ATTRIBUTE_FORMAT12</a></td></tr>
<tr class="memdesc:ga4326834faf460aaec85ba8c4cb1a3d4e"><td class="mdescLeft">&#160;</td><td class="mdescRight">format a string and return a std::string.  <a href="group__utils.html#ga4326834faf460aaec85ba8c4cb1a3d4e">More...</a><br /></td></tr>
<tr class="separator:ga4326834faf460aaec85ba8c4cb1a3d4e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga88353c6cfc2e519df07814ca577e71ec"><td class="memTemplParams" colspan="2">template&lt;typename OutputIterator &gt; </td></tr>
<tr class="memitem:ga88353c6cfc2e519df07814ca577e71ec"><td class="memTemplItemLeft" align="right" valign="top">OutputIterator&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="group__utils.html#ga88353c6cfc2e519df07814ca577e71ec">g2o::readFloats</a> (const char *str, OutputIterator out)</td></tr>
<tr class="memdesc:ga88353c6cfc2e519df07814ca577e71ec"><td class="mdescLeft">&#160;</td><td class="mdescRight">read float values (seperated by spaces) from a string and store them in the given OutputIterator.  <a href="group__utils.html#ga88353c6cfc2e519df07814ca577e71ec">More...</a><br /></td></tr>
<tr class="separator:ga88353c6cfc2e519df07814ca577e71ec"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gae501003a8f6b60afb846857fdb82174d"><td class="memTemplParams" colspan="2">template&lt;typename OutputIterator &gt; </td></tr>
<tr class="memitem:gae501003a8f6b60afb846857fdb82174d"><td class="memTemplItemLeft" align="right" valign="top">OutputIterator&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="group__utils.html#gae501003a8f6b60afb846857fdb82174d">g2o::readInts</a> (const char *str, OutputIterator out)</td></tr>
<tr class="memdesc:gae501003a8f6b60afb846857fdb82174d"><td class="mdescLeft">&#160;</td><td class="mdescRight">read integer values (seperated by spaces) from a string and store them in the given OutputIterator.  <a href="group__utils.html#gae501003a8f6b60afb846857fdb82174d">More...</a><br /></td></tr>
<tr class="separator:gae501003a8f6b60afb846857fdb82174d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga07aa1d8e5a4e25d0170010df66908611"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__utils.html#ga07aa1d8e5a4e25d0170010df66908611">g2o::readLine</a> (std::istream &amp;is, std::stringstream &amp;currentLine)</td></tr>
<tr class="memdesc:ga07aa1d8e5a4e25d0170010df66908611"><td class="mdescLeft">&#160;</td><td class="mdescRight">read a line from is into currentLine.  <a href="group__utils.html#ga07aa1d8e5a4e25d0170010df66908611">More...</a><br /></td></tr>
<tr class="separator:ga07aa1d8e5a4e25d0170010df66908611"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga72be58353c64ef6f14ae70d43f75c892"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__utils.html#ga72be58353c64ef6f14ae70d43f75c892">g2o::strEndsWith</a> (const std::string &amp;str, const std::string &amp;substr)</td></tr>
<tr class="memdesc:ga72be58353c64ef6f14ae70d43f75c892"><td class="mdescLeft">&#160;</td><td class="mdescRight">return true, if str ends with substr  <a href="group__utils.html#ga72be58353c64ef6f14ae70d43f75c892">More...</a><br /></td></tr>
<tr class="separator:ga72be58353c64ef6f14ae70d43f75c892"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga198d4ceebba5de14cd7e40be2a06c277"><td class="memItemLeft" align="right" valign="top">std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__utils.html#ga198d4ceebba5de14cd7e40be2a06c277">g2o::strExpandFilename</a> (const std::string &amp;filename)</td></tr>
<tr class="memdesc:ga198d4ceebba5de14cd7e40be2a06c277"><td class="mdescLeft">&#160;</td><td class="mdescRight">expand the given filename like a posix shell, e.g., ~ $CARMEN_HOME and other will get expanded.  <a href="group__utils.html#ga198d4ceebba5de14cd7e40be2a06c277">More...</a><br /></td></tr>
<tr class="separator:ga198d4ceebba5de14cd7e40be2a06c277"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga9dac39a213d269b8d68fb698bf82873a"><td class="memTemplParams" colspan="2">template&lt;typename T &gt; </td></tr>
<tr class="memitem:ga9dac39a213d269b8d68fb698bf82873a"><td class="memTemplItemLeft" align="right" valign="top">T&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="group__utils.html#ga9dac39a213d269b8d68fb698bf82873a">g2o::stringToType</a> (const std::string &amp;s, bool failIfLeftoverChars=true)</td></tr>
<tr class="memdesc:ga9dac39a213d269b8d68fb698bf82873a"><td class="mdescLeft">&#160;</td><td class="mdescRight">convert a string into an other type.  <a href="group__utils.html#ga9dac39a213d269b8d68fb698bf82873a">More...</a><br /></td></tr>
<tr class="separator:ga9dac39a213d269b8d68fb698bf82873a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gad7948072d9d6c2c6bfe25925e58529e8"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__utils.html#gad7948072d9d6c2c6bfe25925e58529e8">g2o::strPrintf</a> (std::string &amp;str, const char *fmt,...) <a class="el" href="macros_8h.html#af446712aac1f524edbeff60bc0078e97">G2O_ATTRIBUTE_FORMAT23</a></td></tr>
<tr class="memdesc:gad7948072d9d6c2c6bfe25925e58529e8"><td class="mdescLeft">&#160;</td><td class="mdescRight">replacement function for sprintf which fills a std::string instead of a char*  <a href="group__utils.html#gad7948072d9d6c2c6bfe25925e58529e8">More...</a><br /></td></tr>
<tr class="separator:gad7948072d9d6c2c6bfe25925e58529e8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gab7609f349d1d97a8164162143589762c"><td class="memItemLeft" align="right" valign="top">std::vector&lt; std::string &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__utils.html#gab7609f349d1d97a8164162143589762c">g2o::strSplit</a> (const std::string &amp;s, const std::string &amp;delim)</td></tr>
<tr class="memdesc:gab7609f349d1d97a8164162143589762c"><td class="mdescLeft">&#160;</td><td class="mdescRight">split a string into token based on the characters given in delim  <a href="group__utils.html#gab7609f349d1d97a8164162143589762c">More...</a><br /></td></tr>
<tr class="separator:gab7609f349d1d97a8164162143589762c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga6b9ad55d182238a3b29c755e5a91227c"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__utils.html#ga6b9ad55d182238a3b29c755e5a91227c">g2o::strStartsWith</a> (const std::string &amp;str, const std::string &amp;substr)</td></tr>
<tr class="memdesc:ga6b9ad55d182238a3b29c755e5a91227c"><td class="mdescLeft">&#160;</td><td class="mdescRight">return true, if str starts with substr  <a href="group__utils.html#ga6b9ad55d182238a3b29c755e5a91227c">More...</a><br /></td></tr>
<tr class="separator:ga6b9ad55d182238a3b29c755e5a91227c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga98a43706466c9618576a0f23e9021457"><td class="memItemLeft" align="right" valign="top">std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__utils.html#ga98a43706466c9618576a0f23e9021457">g2o::strToLower</a> (const std::string &amp;s)</td></tr>
<tr class="memdesc:ga98a43706466c9618576a0f23e9021457"><td class="mdescLeft">&#160;</td><td class="mdescRight">convert the string to lower case  <a href="group__utils.html#ga98a43706466c9618576a0f23e9021457">More...</a><br /></td></tr>
<tr class="separator:ga98a43706466c9618576a0f23e9021457"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gac5545be3a953651c68fe8c81313f2564"><td class="memItemLeft" align="right" valign="top">std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__utils.html#gac5545be3a953651c68fe8c81313f2564">g2o::strToUpper</a> (const std::string &amp;s)</td></tr>
<tr class="memdesc:gac5545be3a953651c68fe8c81313f2564"><td class="mdescLeft">&#160;</td><td class="mdescRight">convert a string to upper case  <a href="group__utils.html#gac5545be3a953651c68fe8c81313f2564">More...</a><br /></td></tr>
<tr class="separator:gac5545be3a953651c68fe8c81313f2564"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga5c3812993227cfbec772c7477928c1fc"><td class="memItemLeft" align="right" valign="top">std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__utils.html#ga5c3812993227cfbec772c7477928c1fc">g2o::trim</a> (const std::string &amp;s)</td></tr>
<tr class="memdesc:ga5c3812993227cfbec772c7477928c1fc"><td class="mdescLeft">&#160;</td><td class="mdescRight">remove whitespaces from the start/end of a string  <a href="group__utils.html#ga5c3812993227cfbec772c7477928c1fc">More...</a><br /></td></tr>
<tr class="separator:ga5c3812993227cfbec772c7477928c1fc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga1e3dc946d073cacb02cf458d67471ad5"><td class="memItemLeft" align="right" valign="top">std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__utils.html#ga1e3dc946d073cacb02cf458d67471ad5">g2o::trimLeft</a> (const std::string &amp;s)</td></tr>
<tr class="memdesc:ga1e3dc946d073cacb02cf458d67471ad5"><td class="mdescLeft">&#160;</td><td class="mdescRight">remove whitespaces from the left side of the string  <a href="group__utils.html#ga1e3dc946d073cacb02cf458d67471ad5">More...</a><br /></td></tr>
<tr class="separator:ga1e3dc946d073cacb02cf458d67471ad5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga3e3eb912f0f9e272e81127f1653edf38"><td class="memItemLeft" align="right" valign="top">std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__utils.html#ga3e3eb912f0f9e272e81127f1653edf38">g2o::trimRight</a> (const std::string &amp;s)</td></tr>
<tr class="memdesc:ga3e3eb912f0f9e272e81127f1653edf38"><td class="mdescLeft">&#160;</td><td class="mdescRight">remove whitespaced from the right side of the string  <a href="group__utils.html#ga3e3eb912f0f9e272e81127f1653edf38">More...</a><br /></td></tr>
<tr class="separator:ga3e3eb912f0f9e272e81127f1653edf38"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_08235c883c2d11e586a63e6645937db5.html">Thirdparty</a></li><li class="navelem"><a class="el" href="dir_6238d635334f7e809f450ee18181fd21.html">g2o</a></li><li class="navelem"><a class="el" href="dir_62a53d30c17c36057e41412a1a4f77b8.html">g2o</a></li><li class="navelem"><a class="el" href="dir_8060ee540022a2c52e71c5c2c8062ae1.html">stuff</a></li><li class="navelem"><a class="el" href="string__tools_8h.html">string_tools.h</a></li>
    <li class="footer">Generated by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.12 </li>
  </ul>
</div>
</body>
</html>
